import { flysel } from "../plugin/flysel.js";

const note_card = flysel('#note-card-container')
note_card.on('click', function () {
    const e = this.parent('.note-card')
    if (e.hasClass('lock')) {
        e.removeClass('lock').sibling().css('opacity', '')
    } else {
        e.addClass('lock').sibling().css('opacity', 0)
    }
}, {
    entrust: '.lock-svg'
})

note_card.on({
    mouseover() {
        this.sibling().addClass('hide')
    },
    mouseout() {
        this.sibling().removeClass('hide')
    }
}, {
    entrust: '.note-card'
})